package cn.itsource.mapper;

import cn.itsource.domain.Role;
import cn.itsource.query.RoleQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {

    List<Role> selectForList(RoleQuery query);

    void insert(Role role);

    void updateById(Role role);

    void insertRelationWithPermission(@Param("roleId") Long roleId, @Param("perIds") String[] perIds);

    void deleteRelationWithPermission(Long roleId);
}
